using System;
using Guru.Framework.BaseDal;
using System.Collections.Generic;
using System.Collections;
using System.Data;
using Guru.Framework.Util;
using CRMG.UserManagement.Source.QO;

namespace CRMG.UserManagement.Source.DL
{
    public class OperationsDL : BaseDL
    {

        public OperationsDL()
        {
        }
        public List<string> GetOperationCodesOfUser(int userId)
        {
            try
            {
                Hashtable h = new Hashtable();
                h.Add("@UserId", userId);
                DataTable dt = Manager.GetResultSet(UserCrud.GetOperationCodesOfUser(), h).Tables[0];
                return DataUtil.GetOneColumnAsList(dt, 0);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
